﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="StatisticZones.ascx.cs"
    Inherits="Framework.Module.Logging.Admin.StatisticZones" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>
<%@ Register Assembly="RadChart.Net2" Namespace="Telerik.Charting" TagPrefix="radC" %>
<%@ Register Src="UserControls/SelecteDate.ascx" TagName="SelecteDate" TagPrefix="uc1" %>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script language="javascript">
function SwitchMenu(obj,id2)
{
	if(document.getElementById) {
	var el = document.getElementById(obj);
	
		if(el.style.display == "none") { 
			//document.getElementById(id2).innerHTML='[-]';
			el.style.display = "";
			//SetCookie(obj,"","-1"); 
		} else { 
			//document.getElementById(id2).innerHTML='[+]';
			el.style.display = "none";
			//SetCookie(obj,1,0); 
		}
	}
}
</script>

<table cellspacing="0" cellpadding="0" width="98%" bgcolor="#f6f6f6" border="0">
    <tr>
        <td width="100">
        </td>
        <td>
            <table cellspacing="4" cellpadding="2" border="0">
                <tr>
                    <td width="200">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        Từ ngày:&nbsp;&nbsp;&nbsp;
                        <uc1:SelecteDate ID="SelecteDate3" runat="server" />
                        <br>
                        <br>
                        Ðến ngày:&nbsp;
                        <uc1:SelecteDate ID="SelecteDate4" runat="server" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="30">
            &nbsp;</td>
    </tr>
    <tr>
        <td style="padding-left: 100px" colspan="2">
            <asp:ListBox ID="lstZone" SelectionMode="Multiple" Height="250px" Width="300px" runat="server">
            </asp:ListBox></td>
    </tr>
    <tr>
        <td colspan="2" height="15">
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:Button ID="btnThongke" runat="server" Text="Thống kê" OnClick="btnThongke_Click">
            </asp:Button>&nbsp;
            <input onclick="window.history.back()" type="button" value="Trở lại">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lbmes"
                runat="server" ForeColor="#3300cc"></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="30" valign="middle" align="center">
            Xem dưới dạng thống kê &nbsp;&nbsp; <a id="classic" onclick="SwitchMenu('tr_classic','classic'); return false;"
                href="">classic</a> &nbsp;&nbsp;&nbsp; <a id="modern" onclick="SwitchMenu('tr_modern','modern'); return false;"
                    href="">Modern</a>
        </td>
    </tr>
    <tr id="tr_classic" style="display: none">
        <td>
        </td>
        <td>
            <asp:DataGrid ID="dgrStatistic" runat="server" EnableViewState="True" AutoGenerateColumns="False"
                PageSize="24" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" BackColor="White"
                CellPadding="5" AllowSorting="True" OnItemDataBound="dgrStatistic_ItemDataBound">
                <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
                <ItemStyle ForeColor="#000066"></ItemStyle>
                <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
                <Columns>
                    <asp:TemplateColumn HeaderText="Tên chuyên mục" SortExpression="Zone_Name">
                        <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        <ItemTemplate>
                            <asp:Label ID="lbzonename" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn>
                        <ItemStyle Width="350px"></ItemStyle>
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <table border="0">
                                            <tr>
                                                <td bgcolor="#0033cc" id="td_sum" height="6px" runat="server">
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbpercel" ForeColor="#990099" runat="server"></asp:Label></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn HeaderText="% lượt truy cập">
                        <ItemStyle Width="80px"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="Số lượt truy cập" SortExpression="Counter">
                        <ItemTemplate>
                            <asp:Label ID="lbCounter" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
                <PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages">
                </PagerStyle>
            </asp:DataGrid>
        </td>
    </tr>
    <tr id="tr_modern" style="display: none">
        <td>
        </td>
        <td>
            &nbsp;<radC:RadChart ID="RadChart1" runat="server">
                <PlotArea>
                    <DataTable>
                        <Appearance RenderType="PlotAreaRelative" TextVerticalAlign="Middle" TextHorizontalAlign="Center">
                        </Appearance>
                    </DataTable>
                    <YAxis Step="10" MaxValue="100">
                    </YAxis>
                    <YAxis2 MinValue="1">
                    </YAxis2>
                    <XAxis MinValue="1">
                    </XAxis>
                </PlotArea>
                <Series>
                    <radC:ChartSeries Name="Series 1">
                    </radC:ChartSeries>
                    <radC:ChartSeries Name="Series 2">
                    </radC:ChartSeries>
                </Series>
            </radC:RadChart>
        </td>
    </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>

